package com.wzx.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wzx.shop.common.BasePojo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @author wzx
 * @version 1.0
 * @date 2022/9/14 - 9:51
 * @description 标题
 */
@Data
@TableName("t_shop_order")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ShopOrder", description = "订单")
public class ShopOrder extends BasePojo {

    @TableId(value = "orderId", type = IdType.AUTO)
    @ApiModelProperty(notes = "主键id", required = true)
    private Integer orderId;

    @TableField("userId")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @TableField("price")
    @ApiModelProperty(value = "总价格")
    private BigDecimal price;

    @TableField("address")
    @ApiModelProperty(value = "地址")
    private String address;

    @TableField("detail")
    @ApiModelProperty(value = "订单详情")
    private String detail;

    @TableField("dataState")
    @ApiModelProperty(value = "数据状态（1，可用；0，不可用）")
    private String dataState;

    @TableField("paymentState")
    @ApiModelProperty(value = "支付状态（1，已支付；0，未支付）")
    private String paymentState;

    @TableField("orderState")
    @ApiModelProperty(value = "订单状态（0，订单创建；1，商家接单；2，已发货；3，运送中；4，买家接收商品；5，订单完成）")
    private String orderState;

}
